//
//  ContentView.swift
//  FirstApp
//
//  Created by 卓勇 on 2025/1/6.
//

import SwiftUI

struct ContentView: View {
    // MARK: Properties
    let cards: [Card] = cardDatas
    
    // MARK: - body
    var body: some View {
        ScrollView(.horizontal, showsIndicators: true) {
            HStack(alignment: .center, spacing: 20) {
                ForEach(cards) { item in
                    CardView(cardData: item)
                }
            }
        }
    }
}

#Preview {
    ContentView()
}
